package com.rainng.coursesystem.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rainng.coursesystem.controller.admin.vo.SysUserQueryReqDTO;
import com.rainng.coursesystem.model.entity.AdminEntity;
import com.rainng.coursesystem.model.entity.RoleEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RoleMapper extends BaseMapper<RoleEntity> {

    Integer testcount();

    IPage<RoleEntity> queryRolePageList(@Param("po") SysUserQueryReqDTO po, Page<RoleEntity> pageParam);

    Integer queryRoleCount(@Param("po") SysUserQueryReqDTO po);

    List<String> getUserIdByUserName(String name);

    List<Map<String,String>> queryRoleNameByGroupId(String gid);

}
